#ifndef _FUNCTIONINSTRUCTION_HPP
#define _FUNCTIONINSTRUCTION_HPP

#include "Object.hpp"
#include "Type.hpp"

using namespace std;

namespace object {
	class FunctionInstruction : public Object {
	public:
		FunctionInstruction(std::vector<int> ins) 
			: _ins(ins) {
		}

		virtual string Type() override {
			return FUNCTION_INSTRUCTION;
		}

		virtual string examine() override {
			return "FUNCTION_INSTRUCTION";
		}

		std::vector<int>& getIns() { return _ins; }

	public:
		std::vector<int> _ins;
		int _localNum{ 0 };
		int _paramsNum{ 0 };
	};
}

#endif